/**
 * 对子模块的快捷访问文件
 */
const getters = {
  sidebar: state => state.app.sidebar, // logo/头部
  device: state => state.app.device, // 折叠展开
  token: state => state.user.token, // 登录功能
  name: state => state.user.userInfo.username, // 用户名
  userId: state => state.user.userInfo.userId, // 建立用户id的映射
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  companyId: state => state.user.userInfo.companyId, // 建立对于user模块的companyId的快捷访问
  routes: state => state.permission.routes // 导出当前的路由
}
export default getters
